package com.kkb.springcloudbill.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultVo {
    private Integer code = 200;
    private String message;
    private Object data;

    public static ResultVo SUCCEED(){
        return new ResultVo(200, "success", null);
    }

    public static ResultVo FAILED(String message){
        return new ResultVo(500, message, null);
    }

}
